package com.project.service.impl;

import com.project.bean.CutPageBean;
import com.project.bean.UserBean;
import com.project.dao.IUserDao;
import com.project.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.time.LocalDate;
import java.util.List;

@Service
public class UserServiceImpl implements IUserService {
    @Autowired
    private IUserDao dao;

    @Override
    public void add(UserBean userBean) {
        dao.add(userBean);
    }

    @Override
    public CutPageBean<UserBean> findByItem(Integer pageNO, String name, LocalDate startDate, LocalDate endDate) {
        return dao.findByItem(pageNO, name, startDate, endDate);
    }

}
